<template>
  <viewer :images="imgUrlList" class="descimgBox" >
    <img v-for="(decImg, index) in imgUrlList" :key="index" :src="decImg" width="100%" height="100%">
  </viewer>
</template>

<script>
export default {
  name: "ShowImgs",
  data() {
    return {
      imgUrlList: [],
    };
  },
  props: {
    imgs: {
      type: Array,
      default:function(){
        return [];
      }
    }
  },
  methods: {
    getImgs(){
      if (this.imgs){
        this.imgUrlList = this.imgs.split(",");
      }else {
        this.imgUrlList= [];
      }
    }
  },
  mounted() {
    this.getImgs()
  },
}
</script>

<style scoped>

</style>
